using System.Collections.Generic;
using System.Text;
using System;
using NHibernate.Collection;
using NHibernate.Mapping;
using Iesi.Collections;
namespace JVLMRP 
{
    public class MRPMasterOrders
    {
        string masterordercode;
        string customercode;
        string taxcode;
        float totalquantity;
        float totalamount;
        string unitcode;
        DateTime orderedtime;
        DateTime deliverytime;
        int ordertypecode;
        ISet mrpdetailsordersList;
        ISet mrpmasterrequirementList;

        public MRPMasterOrders()
        {

        }

        public virtual string Masterordercode
        {
            get { return masterordercode; }
            set { masterordercode = value; }
        }

        public virtual string Customercode
        {
            get { return customercode; }
            set { customercode = value; }
        }

        public virtual string Taxcode
        {
            get { return taxcode; }
            set { taxcode = value; }
        }

        public virtual float Totalquantity
        {
            get { return totalquantity; }
            set { totalquantity = value; }
        }

        public virtual float Totalamount
        {
            get { return totalamount; }
            set { totalamount = value; }
        }

        public virtual string Unitcode
        {
            get { return unitcode; }
            set { unitcode = value; }
        }

        public virtual DateTime Orderedtime
        {
            get { return orderedtime; }
            set { orderedtime = value; }
        }

        public virtual DateTime Deliverytime
        {
            get { return deliverytime; }
            set { deliverytime = value; }
        }

        public virtual int Ordertypecode
        {
            get { return ordertypecode; }
            set { ordertypecode = value; }
        }

        public virtual ISet MrpdetailsordersList
        {
            get { return mrpdetailsordersList; }
            set { mrpdetailsordersList = value; }
        }

        public virtual ISet MrpmasterrequirementList
        {
            get { return mrpmasterrequirementList; }
            set { mrpmasterrequirementList = value; }
        }

        public override string ToString()
        {
            String s = "";
            if (masterordercode != null)
                s += "masterordercode : " + masterordercode.ToString() + "\n";
            else
                s += "masterordercode : null\n";
            if (customercode != null)
                s += "customercode : " + customercode.ToString() + "\n";
            else
                s += "customercode : null\n";
            if (taxcode != null)
                s += "taxcode : " + taxcode.ToString() + "\n";
            else
                s += "taxcode : null\n";
            if (totalquantity != null)
                s += "totalquantity : " + totalquantity.ToString() + "\n";
            else
                s += "totalquantity : null\n";
            if (totalamount != null)
                s += "totalamount : " + totalamount.ToString() + "\n";
            else
                s += "totalamount : null\n";
            if (unitcode != null)
                s += "unitcode : " + unitcode.ToString() + "\n";
            else
                s += "unitcode : null\n";
            if (orderedtime != null)
                s += "orderedtime : " + orderedtime.ToString() + "\n";
            else
                s += "orderedtime : null\n";
            if (deliverytime != null)
                s += "deliverytime : " + deliverytime.ToString() + "\n";
            else
                s += "deliverytime : null\n";
            if (ordertypecode != null)
                s += "ordertypecode : " + ordertypecode.ToString() + "\n";
            else
                s += "ordertypecode : null\n";
            return s;
        }
    }
}
